package com.cros.pruebas2;


class Alpha{
	public Alpha(String s){
		System.out.println("Alpah argn");	
	}
	public Alpha(){
		this(makeRandomName());
		System.out.println("Alpah");
	}
	
	static String makeRandomName() {
		System.out.println("Hello makerandorm");
		int x = (int) (Math.random() * 5);
		String name = new String[] {"Fluffy", "Fido",
		"Rover", "Spike",
		"Gigi"}[x];
		 return name;
		}
	
	public Alpha method(){
		return new Alpha("a");
	}
	
}

class Beta extends Alpha{
	public Beta(){
		System.out.println("Beta");	
	}
	public Beta method(){
		return new Beta();
	}
}

public class TestAlpha {
	public static void main(String argv[]){
	 Alpha a = new Alpha();
	 Alpha c= new Alpha();
	 Alpha b = new Alpha("jesus");
	}
}
